package function;

public class Sphere extends Function{

	public double calculate(double [] inputs)
    {
		  double retorno = 0;
          for (int i = 0; i < inputs.length; i++)
          {
        	  retorno += inputs[i] * inputs[i];
        	  
          }
          return retorno;
    }
		
	public double getMinBoudaries() {
		return -5.12;
	}

	
	public double getMaxBoudaries() {
		return 5.12;
	}

	
}
